export default {
  addCounter(state, payload) {
    payload.count = payload.count + 1
  },
  removeCounter(state, payload) {
    payload.count = payload.count - 1
  },
  addToCart(state, payload) {
    payload.checked = true
    state.cartList.push(payload)
  }
}